<template>
  <div class="not-found">
    <div class="error-container">
      <div class="error-code">404</div>
      <div class="error-message">抱歉，您访问的页面不存在</div>
      <div class="error-description">该页面可能已被删除、移动或暂时不可用</div>
      <el-button type="primary" @click="goToHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goToHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.error-container {
  text-align: center;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.error-code {
  font-size: 96px;
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 16px;
  letter-spacing: -2px;
}

.error-message {
  font-size: 24px;
  color: #333;
  margin-bottom: 8px;
}

.error-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
}

.el-button {
  padding: 8px 24px;
  font-size: 16px;
}

@media (max-width: 576px) {
  .error-code {
    font-size: 72px;
  }
  
  .error-message {
    font-size: 20px;
  }
  
  .error-container {
    margin: 20px;
    padding: 30px 20px;
  }
}
</style>